package mianshi;

/**
 * TOOD
 *
 * @author long
 * @date 2020-08-17 17:16
 */
public class RunnableThreadTest implements Runnable {
    private  int i;

    @Override
    public void run() {
        for (int i=0;i<100;i++){
            System.out.println(Thread.currentThread().getName()+""+i);
        }
    }
    public static void  main(String[] args){
        for (int i=0;i<100;i++){
            System.out.println(Thread.currentThread().getName()+""+i);
            RunnableThreadTest rtt=new RunnableThreadTest();
            new Thread(rtt,"新线程1").start();
            new Thread(rtt,"新线程2").start();

        }
    }
}
